package com.softwareconstruction.strategy;

import com.softwareconstruction.paper.Paper;

import java.util.List;

/**
 * 按顺序选择论文的策略实现
 */
public class OrderSelectionStrategy implements PaperSelectionStrategy {
    @Override
    public List<Paper> selectPapers(List<Paper> availablePapers, int quantity) {
        return availablePapers.subList(0, Math.min(quantity, availablePapers.size()));
    }
}